package com.thb.pay.payment.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.thb.pay.db.entity.SuperEntity;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;


/**
 * <p>
 * 通道信息配置表
 * </p>
 *
 * @author lucky
 * @since 2019-09-26
 */
@Data
@Accessors(chain = true)
@TableName("channel_config")
public class ChannelConfig extends SuperEntity<BankCardBin> {

    public static final String TABLE_NAME = "channel_config";

    /**
     * 渠道编码
     */
    @NotBlank(message = "code.not.null")
    private String code;

    /**
     * 渠道名称
     */
    @NotBlank(message = "name.not.null")
    private String name;
    /**
     * 渠道类型ID
     */
    private Long channelTypeId;

    /**
     * 应用场景ID
     */
    private Long paySceneId;

    /**
     * 状态,0-停止使用,1-使用中
     */
    private Integer status;

    /**
     * 配置参数,json字符串
     */
    @NotBlank(message = "param.not.null")
    private String param;

    /**
     * 备注
     */
    private String remark;

}